namespace com.lythen.file.Security.Migrations
{
    using com.lythen.file.Security.Configuration;
    using com.lythen.file.Security.Entities;
    using System.Data.Entity.Migrations;
    using System.Data.SQLite.EF6.Migrations;

    internal sealed class Configuration : DbMigrationsConfiguration<LythenContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
            SetSqlGenerator("System.Data.SQLite", new SQLiteMigrationSqlGenerator());// the Golden Key

        }

        protected override void Seed(LythenContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data.
            context.UserKeysSet.Add(new UserKeys() { UserName = "admin", PublicKey = "11", PrivateKey = "12" });
        }

    }
}
